﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReplenishementGen.aspx.cs"
    Inherits="WMS6.Web.Inventory.ReplenishementGen" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ReplenishementGen</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }   
        
          //弹出窗口选择货主
        function selectOwner(ownerID)
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(ownerID).focus();
                document.getElementById(ownerID).value = rtnValue;
            }
        }
        
        //弹出窗口选择储区
        function selectZone(zone)
        {
            var rtnValue = popModalWindow('../Configuration/ZoneQuery.aspx?action=txtZoneID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(zone).focus();
                document.getElementById(zone).value = rtnValue;
            }
        }   
        
         //弹出窗口选择货品
        function selectSku(skuID)
        {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID&ownerID=' + escape(document.getElementById("txtOwnerID").value), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(skuID).focus();
                document.getElementById(skuID).value = rtnValue;
            }
        }  
        
    </script>

</head>
<body>
    <form id="F5200" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblGenerateReplenishmentPage" runat="server" CssClass="label_header" Text="生成补货页面"  meta:resourcekey="lblGenerateReplenishmentPage"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGenerate" runat="server" CssClass="button"  Text="生成"  Enabled="false" OnClick="btnGenerate_Click" meta:resourcekey="btnGenerate"/>
                    </td>
                    <td>
                        <asp:Button ID="btnPrint" runat="server" CssClass="button" Text="打印" Enabled="false" meta:resourcekey="btnPrint"/>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" Visible="true"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" Text="常规" meta:resourcekey="lblGeneral"></asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" Text="补货任务明细" meta:resourcekey="lblReplenishmentTaskDetails"></asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="360px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblStart" runat="server" CssClass="label" Text="原" meta:resourcekey="lblStart"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblEnd" runat="server" CssClass="label" Text="至" meta:resourcekey="lblEnd"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblStartOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblStartOwnerID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblEndOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblEndOwnerID"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtStartOwnerID" runat="server" CssClass="textbox"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner('txtStartOwnerID');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtEndOwnerID" runat="server" CssClass="textbox"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner('txtEndOwnerID');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblStartSkuID" runat="server" CssClass="label" Text="货品代码" meta:resourcekey="lblStartSkuID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblEndSkuID" runat="server" CssClass="label" Text="货品代码" meta:resourcekey="lblEndSkuID"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtStartSkuID" runat="server" CssClass="textbox"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtStartSkuID');" />
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtEndSkuID" runat="server" CssClass="textbox"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtEndSkuID');" />
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblStartPriority" runat="server" CssClass="label" Text="优先级" meta:resourcekey="lblStartPriority"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblEndPriority" runat="server" CssClass="label" Text="优先级" meta:resourcekey="lblEndPriority"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtStartPriority" runat="server" CssClass="textbox" Enabled=false></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtEndPriority" runat="server" CssClass="textbox" Enabled=false></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblReplenishmentUom" runat="server" CssClass="label" Text="补货单位" meta:resourcekey="lblReplenishmentUom"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:DropDownList ID="ddlReplenishmentUom" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlReplenishmentUom">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblReplenishementNum" runat="server" CssClass="label" Text="补货任务数" meta:resourcekey="lblReplenishementNum"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtReplenishementNum" runat="server" CssClass="textbox"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none; height: auto; overflow: hidden; overflow-x: auto;
                        padding-bottom: 20px;">
                        <table width="1580px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <div>
                                        <table>
                                            <tr>
                                                <td>
                                                   
                                                </td>
                                            </tr>
                                            <tr style="height: 10px;">
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div>
                                                 <asp:GridView ID="gvtaskDetail" runat="server" AllowSorting="true" 
                                                    AutoGenerateColumns="False"   AllowPaging="True" onrowdatabound="gvtaskDetail_RowDataBound" 
                                                    CssClass="gridview"  DataKeyNames="" Width="1100px"  >
                                                <FooterStyle CssClass="GridViewFooterStyle" />
                                                <RowStyle CssClass="GridViewRowStyle" />
                                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                <PagerStyle CssClass="GridViewPageStyle" />
                                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                                     <Columns>
                                                         <asp:BoundField HeaderText="序号" FooterText="序号">
                                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="TaskDetailID" HeaderText="任务号" FooterText="任务号" SortExpression="TaskDetailID" meta:resourcekey="TaskDetailID">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>                                                        
                                                         <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID" meta:resourcekey="SkuID">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="FromLoc" HeaderText="来源货位" FooterText="来源货位" SortExpression="FromLoc" meta:resourcekey="FromLoc">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="ToLoc" HeaderText="目标货位" FooterText="目标货位" SortExpression="ToLoc" meta:resourcekey="ToLoc">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="FromLpnID" HeaderText="LPN" FooterText="LPN" SortExpression="FromLpnID" meta:resourcekey="FromLpnID">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" SortExpression="UomID" meta:resourcekey="UomID">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="UomQty" HeaderText="单位数量" FooterText="单位数量" SortExpression="UomQty" meta:resourcekey="UomQty">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="Qty" HeaderText="数量" FooterText="数量" SortExpression="Qty" meta:resourcekey="Qty">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                         <asp:BoundField DataField="Lot" HeaderText="批号" FooterText="批号" SortExpression="Lot" meta:resourcekey="Lot">
                                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                                         </asp:BoundField>
                                                     </Columns>
                                             </asp:GridView>
                                                    </div>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                       
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
